﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcApplication2.Models.Speciality>>" %>

<asp:Content ID="Content3" ContentPlaceHolderID="TitleContent" runat="server">
	SpecialityDetails
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Выбор специальности</h2>

    <table>
        <tr>
           
            
            <th>
                Название специальности
            </th>
            <th>
               Номер специальности
            </th>
           
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <!--<td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.number }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.number })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.number })%>
               
                </td> -->
               <td> 
                <%: Html.ActionLink(item.name, "ScoreDetails", new { number = item.number })%> 
            </td>
            
           <!--<td>
                <%: item.number %>
            </td>
            <td>
                <%: item.name %>
            </td>-->
            <td>
                <%: item.kolvo %>
            </td>
           <!-- <td>
                <%: item.idfac %>
            </td>-->
            <td> 
                <%: Html.ActionLink("Детали", "specSubDetails", new { number = item.number })%> 
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.PadingNavigator3((int)Html.ViewData["PageNum"], (int)Html.ViewData["ItemsCount"], (int)Html.ViewData["PageSize"])%>
       
    </p>
    

</asp:Content>